# -*- coding: utf-8 -*-
#  @author  Bink
#  @date  2020/8/29 15:47
# @Email : 2641032316@qq.com


from math import ceil, sqrt

# method1
print(list(filter(lambda x: not [x % n for n in range(2, ceil(sqrt(x))) if x % n == 0], range(2, 100))))

# method2
num = []
for i in range(2, 100):
    for j in range(2, ceil(sqrt(i))):
        if i % j == 0:
            break
    else:
        num.append(i)
print(num)


